//
// Created by wujehy on 2020/8/3.
//

#include <handy/handy.h>
#include "NetWorkWarpper.h"

int main()
{
    NetWorkWarpper networkWarpper;
    // 设置启动的线程数 默认 2 线程
    networkWarpper.setTcpServerPort( 12345 );
//    networkWarpper.setThreadSize(2);
    handy::Signal::signal( SIGTERM, [&] { networkWarpper.stop(); } );

    networkWarpper.init();
    networkWarpper.call_init_success();
    networkWarpper.loop();
    return 0;
}